import 'package:flutter/material.dart';

class Indicator extends StatefulWidget{
  @override
  State<StatefulWidget> createState() {
    return IndicatorState();
  }
}
class IndicatorState extends State<Indicator>{
  @override
  Widget build(BuildContext context){
     return Container(
       color: Colors.white,
       child:
       Row(
         mainAxisAlignment: MainAxisAlignment.spaceEvenly,
         children: <Widget>[
           Tc(),
           FlatButton(
             child: Text('按钮'),
             onPressed: (){
               setState(() {
                 
               });
             },
           )
         ],
       )
    //  Center(
    //   child: Container(
    //     alignment: Alignment.center,
    //     margin: EdgeInsets.only(
    //       right: 20.0,
    //     ),
    //     width: 24.0,
    //     height: 24.0,
    //     child: CircularProgressIndicator(
    //       value: 0.5,
    //       valueColor: AlwaysStoppedAnimation(Colors.black),
    //       strokeWidth: 2.4,
    //     ),
    //   ),
    //  )
     );
  }
}

class Tc extends StatefulWidget{
  @override
  State<StatefulWidget> createState() {
    return _TcState();
  }
}
class _TcState extends State<Tc>{

  @override
  void didChangeDependencies(){
    print('_TcState didChangeDependencies');
    super.didChangeDependencies();
  }

  @override
  Widget build(BuildContext contxt){
    return Text('sdfsd');
  }
}